Skip to content

Move CVXPY converters to DNLP repo, simplify to pure C bindings#26

Merged
dance858 merged 2 commits intomainfrom
integration-cleanup
Jan 15, 2026
Merged

Move CVXPY converters to DNLP repo, simplify to pure C bindings#26
dance858 merged 2 commits intomainfrom
integration-cleanup

Conversation

@Transurgeon
Copy link
Collaborator

  • Remove C_problem class and ATOM_CONVERTERS from this package
  • Now only re-exports low-level C functions from _core extension
  • Remove cvxpy/scipy from core dependencies (only numpy needed)
  • Add cvxpy/scipy to test dependencies for integration tests
  • Update tests to import C_problem from cvxpy.reductions.solvers.nlp_solvers.diff_engine
  • Update CLAUDE.md with improved documentation

This makes dnlp-diff-engine a pure C autodiff library with no circular dependencies, ready for PyPI publishing.

Transurgeon and others added 2 commits January 14, 2026 23:49
- Remove C_problem class and ATOM_CONVERTERS from this package
- Now only re-exports low-level C functions from _core extension
- Remove cvxpy/scipy from core dependencies (only numpy needed)
- Add cvxpy/scipy to test dependencies for integration tests
- Update tests to import C_problem from cvxpy.reductions.solvers.nlp_solvers.diff_engine
- Update CLAUDE.md with improved documentation

This makes dnlp-diff-engine a pure C autodiff library with no circular
dependencies, ready for PyPI publishing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Lockfiles should not be committed for libraries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Transurgeon
Copy link
Collaborator Author

Transurgeon commented Jan 15, 2026

@dance858 I made this PR and some corresponding changes to https://github.com/cvxgrp/DNLP/pull/131/changes in preparation for the migration. This is also something I had in mind.. the diff-engine should not need to take care of the conversion of expression trees, it should just provide derivatives.
Let me know if this disturbs your testing workflow though.

@dance858
Copy link
Collaborator

Awesome! I like this separation.

@dance858 dance858 merged commit a0bd654 into main Jan 15, 2026
0 of 9 checks passed
@dance858 dance858 deleted the integration-cleanup branch February 2, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants